Release 10.1A: OpenEdge Development:
Progress Dynamics Web Development Guide
Using custom images
You can add your own custom images for use by Progress Dynamics Web applications, and you can substitute different images for the default images installed with OpenEdge Studio. The recommended method for using custom images is to create one or more separate directories and set the value of the
image_pathsession property to point to the appropriate directory.The
image_pathproperty functions as a search path. It has the following format:
where
new_image_diris the path (expressed relative tory/img) to the directory containing the images to be displayed in your application. (Note that the location ofry/imgcan be either in your Web server’s document directory or in your OpenEdge installation area, depending on how the Web server is configured. See the "Configuring your Web server" section for more information.)The default value of image_path is
ry/img,..img, which resolves tory/imgitself. To use different images, store them in a separate subdirectory ofry(that is, a peer of theimgdirectory), and specify that directory inimage_path. For example, you might create the directoryry/web_imgand set the value of theimage_pathproperty to:
To set the value of the property, use the Session Type Control tool as explained in the "ICFWS session" section.
You might want to use multiple directories as an organizing device. In that case, you can extend the value of
image_pathby adding morery/img,...new_image_dirpairs, using a comma as the delimiter. For example:
When the application code specifies an image, Progress Dynamics searches the alternate directories listed in the
image_pathproperty in the order in which they appear, until it finds the file. Thus, in the preceding example, suppose the application code refers to the filenew_order.gif, which resides in the directoryweb_img2. Progress Dynamics searches first inweb_img1and then inweb_img2, where it locates the file;web_img3is not searched.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |